package tr3dtris.game.models.pieces;

/**
 * Exception used when <PieceFactory> tryes to create a piece with a wrong
 * typeId
 * @author Luciano Mammino <loige@hotmail.com>
 * @author Andrea Mangano <kapitan0@hotmail.it>
 * @version 0.1
 * @since 0.1
 */
class PieceTypeNotFoundException extends PieceException {

    /**
     * The wrong type id that raised the exception
     */
    private int typeId;

    /**
     * Constructor
     * @param typeId
     */
    public PieceTypeNotFoundException(int typeId)
    {
        super("Piece with typeId " + typeId + " not found!");
        this.typeId = typeId;
    }

    /**
     * @return the typeId
     */
    public int getTypeId()
    {
        return typeId;
    }

}
